package HuaWei;

import java.util.Scanner;

/**
 * @author fly
 * @create 2021--04--01--16:02
 */
public class split_str {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();
        s=s.replaceAll("\\s","");
        System.out.println(s+" "+s.length());
    }
}
